/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.uhk.ppro.response.web;

import cz.uhk.ppro.response.service.DatabaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 *
 * @author Martin
 */

@Controller
public class ReturnTestController {
    
    @Autowired
    private DatabaseService databaseSession;
    
    @RequestMapping(value="completeTest", method = RequestMethod.POST)
    public String someMethod(@RequestParam("postdata") String listTestu, 
                             @RequestParam("userId") String idUser,
                             @RequestParam("testId") String idTest) {
        
       
        System.out.println("List Q a vybranych odpovedi");
        System.out.println(listTestu);
        System.out.println("uzivatelske ID");
        System.out.println(idUser);
        System.out.println("testID");
        System.out.println(idTest);
        return "hello";
            
 
    }
    
    
    
    
}
